package com.jiwei.community.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jiwei.community.dao.SignInRecordMapper;
import com.jiwei.community.entity.SignInRecord;
import com.jiwei.community.service.SignInRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * (SignInRecord)表服务实现类
 *
 * @author jiwei
 * @since 2024-03-20 11:00:01
 */
@Service("signInRecordService")
public class SignInRecordServiceImpl extends ServiceImpl<SignInRecordMapper, SignInRecord> implements SignInRecordService {
    @Resource
    SignInRecordMapper signInRecordMapper;
    @Override
    public SignInRecord getLatestSignInRecord(Long userId, Long communityId) {
        SignInRecord record = signInRecordMapper.getLatestSignInRecord(userId,communityId);
        return record;
    }
}

